// pages/contraststandards/push/push.js
var utils = require('../../../utils/util.js');
var httpUrl = getApp().globalData.httpUrl;
Page({

    /**
     * 页面的初始数据
     */
    data: {

    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        console.log(options.id);
        var that = this;
        utils.http(httpUrl + "/mobile/member/my_person_article_detail", {
            id:options.id
        }, function (res) {
            if (res.state == 1) {
                console.log(res);
                var time = Date.parse(new Date(res.datas.create_time));
                var timeData1 = utils.getPastTime(time);
                that.setData({
                    datas: res.datas,
                    timeData1: timeData1
                });
            } else {
                utils.message(res.datas);
            }
        })

    },
    //进入推送详情
    oNpushDetailTap: function (e) {
       
        wx.navigateTo({
            url: '../../newmore/newmoreDetail/newmoreDetail?id=' + e.currentTarget.dataset.id + "&type=5",
        })
    },


  
})